home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK2.toast / Development Kits (Disc 2) / QuickTime / Programming Stuff / QuickTime 2.1 for Developers / Interfaces / AIncludes / ImageCodec.a next >
Encoding:
Text File  |  1995-08-07  |  8.9 KB  |  336 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        ImageCodec.a
  3. ;
  4. ;    Contains:    QuickTime interfaces
  5. ;
  6. ;    Version:    
  7. ;
  8. ;    DRI:        Jim Batson
  9. ;
  10. ;    Copyright:    © 1984-1994 by Apple Computer, Inc.
  11. ;                All rights reserved.
  12. ;
  13. ;    Warning:    *** APPLE INTERNAL USE ONLY ***
  14. ;                This file may contain unreleased API's
  15. ;
  16. ;    BuildInfo:    Built by:            QuickTime
  17. ;                With Interfacer:    1.1d11  
  18. ;                From:                ImageCodec.i
  19. ;                    Revision:        0
  20. ;                    Dated:            08/07/95
  21. ;                    Last change by:    JB
  22. ;                    Last comment:    This is a fake header used so interfacer is happy.
  23. ;
  24. ;    Bugs:        Report bugs to Radar component “System Interfaces”, “Latest”
  25. ;                List the version information (from above) in the Problem Description.
  26. ;
  27. ;
  28.  
  29.     IF &TYPE('__IMAGECODEC__') = 'UNDEFINED' THEN
  30. __IMAGECODEC__ SET 1
  31.  
  32.  
  33.     IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
  34.     include 'Types.a'
  35.     ENDIF
  36. ;        include 'ConditionalMacros.a'                                ;
  37.  
  38.     IF &TYPE('__QUICKDRAW__') = 'UNDEFINED' THEN
  39.     include 'Quickdraw.a'
  40.     ENDIF
  41. ;        include 'MixedMode.a'                                        ;
  42. ;        include 'QuickdrawText.a'                                    ;
  43.  
  44.     IF &TYPE('__QDOFFSCREEN__') = 'UNDEFINED' THEN
  45.     include 'QDOffscreen.a'
  46.     ENDIF
  47. ;        include 'Errors.a'                                            ;
  48.  
  49.     IF &TYPE('__WINDOWS__') = 'UNDEFINED' THEN
  50.     include 'Windows.a'
  51.     ENDIF
  52. ;        include 'Memory.a'                                            ;
  53. ;        include 'Events.a'                                            ;
  54. ;            include 'OSUtils.a'                                    ;
  55. ;        include 'Controls.a'                                        ;
  56. ;            include 'Menus.a'                                        ;
  57.  
  58.     IF &TYPE('__IMAGECOMPRESSION__') = 'UNDEFINED' THEN
  59.     include 'ImageCompression.a'
  60.     ENDIF
  61. ;        include 'Components.a'                                        ;
  62. ;        include 'StandardFile.a'                                    ;
  63. ;            include 'Dialogs.a'                                    ;
  64. ;                include 'TextEdit.a'                                ;
  65. ;            include 'Files.a'                                        ;
  66.  
  67.     IF &TYPE('__MOVIES__') = 'UNDEFINED' THEN
  68.     include 'Movies.a'
  69.     ENDIF
  70. ;        include 'Aliases.a'                                        ;
  71. ;            include 'AppleTalk.a'                                    ;
  72.  
  73. codecGetCodecInfo                EQU        $00
  74. codecGetCompressionTime            EQU        $01
  75. codecGetMaxCompressionSize        EQU        $02
  76. codecPreCompress                EQU        $03
  77. codecBandCompress                EQU        $04
  78. codecPreDecompress                EQU        $05
  79. codecBandDecompress                EQU        $06
  80. codecCDSequenceBusy                EQU        $07
  81. codecGetCompressedImageSize        EQU        $08
  82. codecGetSimilarity                EQU        $09
  83. codecTrimImage                    EQU        $0A
  84. codecRequestSettings            EQU        $0B
  85. codecGetSettings                EQU        $0C
  86. codecSetSettings                EQU        $0D
  87. codecCDSequenceFlush            EQU        $0E
  88. codecSetTimeCode                EQU        $0F
  89. codecIsImageDescriptionEquivalent EQU        $10
  90. codecNewMemory                    EQU        $11
  91. codecDisposeMemory                EQU        $12
  92. codecHitTestData                EQU        $13
  93.  
  94. codecCanScale                    EQU        1 << 0
  95. codecCanMask                    EQU        1 << 1
  96. codecCanMatte                    EQU        1 << 2
  97. codecCanTransform                EQU        1 << 3
  98. codecCanTransferMode            EQU        1 << 4
  99. codecCanCopyPrev                EQU        1 << 5
  100. codecCanSpool                    EQU        1 << 6
  101. codecCanClipVertical            EQU        1 << 7
  102. codecCanClipRectangular            EQU        1 << 8
  103. codecCanRemapColor                EQU        1 << 9
  104. codecCanFastDither                EQU        1 << 10
  105. codecCanSrcExtract                EQU        1 << 11
  106. codecCanCopyPrevComp            EQU        1 << 12
  107. codecCanAsync                    EQU        1 << 13
  108. codecCanMakeMask                EQU        1 << 14
  109. codecCanShift                    EQU        1 << 15
  110. codecCanAsyncWhen                EQU        1 << 16
  111. codecCanShieldCursor            EQU        1 << 17
  112. codecCanManagePrevBuffer        EQU        1 << 18
  113. codecHasVolatileBuffer            EQU        1 << 19
  114. codecWantsRegionMask            EQU        1 << 20
  115.  
  116. CodecCapabilities         RECORD    0
  117. flags                     ds.l    1
  118. wantedPixelSize             ds.w    1
  119. extendWidth                 ds.w    1
  120. extendHeight             ds.w    1
  121. bandMin                     ds.w    1
  122. bandInc                     ds.w    1
  123. pad                         ds.w    1
  124. time                     ds.l    1
  125. sizeof                     EQU    *
  126.                         ENDR
  127.  
  128. ; typedef struct CodecCapabilities  CodecCapabilities
  129.  
  130. codecConditionFirstBand            EQU        1 << 0
  131. codecConditionLastBand            EQU        1 << 1
  132. codecConditionFirstFrame        EQU        1 << 2
  133. codecConditionNewDepth            EQU        1 << 3
  134. codecConditionNewTransform        EQU        1 << 4
  135. codecConditionNewSrcRect        EQU        1 << 5
  136. codecConditionNewMask            EQU        1 << 6
  137. codecConditionNewMatte            EQU        1 << 7
  138. codecConditionNewTransferMode    EQU        1 << 8
  139. codecConditionNewClut            EQU        1 << 9
  140. codecConditionNewAccuracy        EQU        1 << 10
  141. codecConditionNewDestination    EQU        1 << 11
  142. codecConditionFirstScreen        EQU        1 << 12
  143. codecConditionDoCursor            EQU        1 << 13
  144. codecConditionCatchUpDiff        EQU        1 << 14
  145. codecConditionMaskMayBeChanged    EQU        1 << 15
  146. codecConditionCodecChangedMask    EQU        1 << 31
  147.  
  148. codecInfoResourceType            EQU        'cdci'
  149. codecInterfaceVersion            EQU        2
  150.  
  151. CDSequenceDataSource     RECORD    0
  152. recordSize                 ds.l    1
  153. next                     ds.l    1
  154. seqID                     ds.l    1
  155. sourceID                 ds.l    1
  156. sourceType                 ds.l    1
  157. sourceInputNumber         ds.l    1
  158. dataPtr                     ds.l    1
  159. dataDescription             ds.l    1
  160. changeSeed                 ds.l    1
  161. transferProc             ds.l    1
  162. refCon                     ds.l    1
  163. sizeof                     EQU    *
  164.                         ENDR
  165.  
  166. ; typedef struct CDSequenceDataSource  CDSequenceDataSource, *CDSequenceDataSourcePtr
  167. CodecCompressParams     RECORD    0
  168. sequenceID                 ds.l    1
  169. imageDescription         ds.l    1
  170. data                     ds.l    1
  171. bufferSize                 ds.l    1
  172. frameNumber                 ds.l    1
  173. startLine                 ds.l    1
  174. stopLine                 ds.l    1
  175. conditionFlags             ds.l    1
  176. callerFlags                 ds.w    1
  177. capabilities             ds.l    1
  178. progressProcRecord         ds        ICMProgressProcRecord
  179. completionProcRecord     ds        ICMCompletionProcRecord
  180. flushProcRecord             ds        ICMFlushProcRecord
  181. srcPixMap                 ds        PixMap
  182. prevPixMap                 ds        PixMap
  183. spatialQuality             ds.l    1
  184. temporalQuality             ds.l    1
  185. similarity                 ds.l    1
  186. dataRateParams             ds.l    1
  187. reserved                 ds.l    1
  188. majorSourceChangeSeed     ds.w    1
  189. minorSourceChangeSeed     ds.w    1
  190. sourceData                 ds.l    1
  191. sizeof                     EQU    *
  192.                         ENDR
  193.  
  194. ; typedef struct CodecCompressParams  CodecCompressParams
  195. CodecDecompressParams     RECORD    0
  196. sequenceID                 ds.l    1
  197. imageDescription         ds.l    1
  198. data                     ds.l    1
  199. bufferSize                 ds.l    1
  200. frameNumber                 ds.l    1
  201. startLine                 ds.l    1
  202. stopLine                 ds.l    1
  203. conditionFlags             ds.l    1
  204. callerFlags                 ds.w    1
  205. capabilities             ds.l    1
  206. progressProcRecord         ds        ICMProgressProcRecord
  207. completionProcRecord     ds        ICMCompletionProcRecord
  208. dataProcRecord             ds        ICMDataProcRecord
  209. port                     ds.l    1
  210. dstPixMap                 ds        PixMap
  211. maskBits                 ds.l    1
  212. mattePixMap                 ds.l    1
  213. srcRect                     ds        Rect
  214. matrix                     ds.l    1
  215. accuracy                 ds.l    1
  216. transferMode             ds.w    1
  217. frameTime                 ds.l    1
  218. reserved                 ds.l    1
  219. matrixFlags                 ds.b    1
  220. matrixType                 ds.b    1
  221. dstRect                     ds        Rect
  222. majorSourceChangeSeed     ds.w    1
  223. minorSourceChangeSeed     ds.w    1
  224. sourceData                 ds.l    1
  225. maskRegion                 ds.l    1
  226. sizeof                     EQU    *
  227.                         ENDR
  228.  
  229. ; typedef struct CodecDecompressParams  CodecDecompressParams
  230.  
  231. matrixFlagScale2x                EQU        1 << 7
  232. matrixFlagScale1x                EQU        1 << 6
  233. matrixFlagScaleHalf                EQU        1 << 5
  234.  
  235. ;
  236. ; pascal ComponentResult CDGetCodecInfo(Handle storage, CodecInfo *info)
  237. ;
  238.         IMPORT    CDGetCodecInfo
  239.  
  240. ;
  241. ; pascal ComponentResult CDGetCompressionTime(Handle storage, PixMapHandle src, const Rect *srcRect, short depth, CodecQ *spatialQuality, CodecQ *temporalQuality, unsigned long *time)
  242. ;
  243.         IMPORT    CDGetCompressionTime
  244.  
  245. ;
  246. ; pascal ComponentResult CDGetMaxCompressionSize(Handle storage, PixMapHandle src, const Rect *srcRect, short depth, CodecQ quality, long *size)
  247. ;
  248.         IMPORT    CDGetMaxCompressionSize
  249.  
  250. ;
  251. ; pascal ComponentResult CDPreCompress(Handle storage, CodecCompressParams *params)
  252. ;
  253.         IMPORT    CDPreCompress
  254.  
  255. ;
  256. ; pascal ComponentResult CDBandCompress(Handle storage, CodecCompressParams *params)
  257. ;
  258.         IMPORT    CDBandCompress
  259.  
  260. ;
  261. ; pascal ComponentResult CDPreDecompress(Handle storage, CodecDecompressParams *params)
  262. ;
  263.         IMPORT    CDPreDecompress
  264.  
  265. ;
  266. ; pascal ComponentResult CDBandDecompress(Handle storage, CodecDecompressParams *params)
  267. ;
  268.         IMPORT    CDBandDecompress
  269.  
  270. ;
  271. ; pascal ComponentResult CDCodecBusy(Handle storage, ImageSequence seq)
  272. ;
  273.         IMPORT    CDCodecBusy
  274.  
  275. ;
  276. ; pascal ComponentResult CDGetCompressedImageSize(Handle storage, ImageDescriptionHandle desc, Ptr data, long bufferSize, ICMDataProcRecordPtr dataProc, long *dataSize)
  277. ;
  278.         IMPORT    CDGetCompressedImageSize
  279.  
  280. ;
  281. ; pascal ComponentResult CDGetSimilarity(Handle storage, PixMapHandle src, const Rect *srcRect, ImageDescriptionHandle desc, Ptr data, Fixed *similarity)
  282. ;
  283.         IMPORT    CDGetSimilarity
  284.  
  285. ;
  286. ; pascal ComponentResult CDTrimImage(Handle storage, ImageDescriptionHandle Desc, Ptr inData, long inBufferSize, ICMDataProcRecordPtr dataProc, Ptr outData, long outBufferSize, ICMFlushProcRecordPtr flushProc, Rect *trimRect, ICMProgressProcRecordPtr progressProc)
  287. ;
  288.         IMPORT    CDTrimImage
  289.  
  290. ;
  291. ; pascal ComponentResult CDRequestSettings(Handle storage, Handle settings, Rect *rp, ModalFilterUPP filterProc)
  292. ;
  293.         IMPORT    CDRequestSettings
  294.  
  295. ;
  296. ; pascal ComponentResult CDGetSettings(Handle storage, Handle settings)
  297. ;
  298.         IMPORT    CDGetSettings
  299.  
  300. ;
  301. ; pascal ComponentResult CDSetSettings(Handle storage, Handle settings)
  302. ;
  303.         IMPORT    CDSetSettings
  304.  
  305. ;
  306. ; pascal ComponentResult CDCodecFlush(Handle storage)
  307. ;
  308.         IMPORT    CDCodecFlush
  309.  
  310. ;
  311. ; pascal ComponentResult CDCodecSetTimeCode(Handle storage, void *timeCodeFormat, void *timeCodeTime)
  312. ;
  313.         IMPORT    CDCodecSetTimeCode
  314.  
  315. ;
  316. ; pascal ComponentResult CDCodecIsImageDescriptionEquivalent(Handle storage, ImageDescriptionHandle newDesc, Boolean *equivalent)
  317. ;
  318.         IMPORT    CDCodecIsImageDescriptionEquivalent
  319.  
  320. ;
  321. ; pascal ComponentResult CDCodecNewMemory(Handle storage, Ptr *data, Size dataSize, long dataUse, ICMMemoryDisposedUPP memoryGoneProc, void *refCon)
  322. ;
  323.         IMPORT    CDCodecNewMemory
  324.  
  325. ;
  326. ; pascal ComponentResult CDCodecDisposeMemory(Handle storage, Ptr data)
  327. ;
  328.         IMPORT    CDCodecDisposeMemory
  329.  
  330. ;
  331. ; pascal ComponentResult CDCodecHitTestData(Handle storage, ImageDescriptionHandle desc, void *data, Size dataSize, Point where, Boolean *hit)
  332. ;
  333.         IMPORT    CDCodecHitTestData
  334.  
  335.     ENDIF ; __IMAGECODEC__
  336.